<?php
/**
 * Created by PhpStorm.
 * User: zhulihulian
 * Date: 2017/7/5
 * Time: 12:08
 */

namespace app\ice\model;

use think\Model;

class LuckDraw extends Model {
    protected $table = 'ig_luck_draw';
    protected $pk = 'id';

    public function getAddressList($where){
    	return $this->where('uid',$where['uid'])->select();
    }

    public function getAddressDefalt($where){
    	return $this->where('uid',$where['uid'])->where('isDefault',1)->find();
    }
    
    public function getDetail($id){
    	return $this->where('id',$id)->find();
    }
}